/**
 * Licensed by the Bunie Developmentgroup.
 */
package Protocol;

/**
 * @author Wouter
 * Class to test communication, test purpose only
 */
public class TestPacket extends BasicPacket {
    String message="test";
    
    /**
     * Constructor of the testpacket
     * @param version 
     */
    public TestPacket(int version) {
        super(version);
        this.type = PacketTypeKeeper.TESTPACKET;
    }
    
    /**
     * Methode to get the message of this testpacket
     * @return Returns the message of this testpacket
     */
    public String getMessage() {
        return this.message;
    }
    
    /**
     * Methode to set the message of this testpacket
     * @param message Value to set the message to
     */
    public void setMessage(String message) {
        this.message = message;
    }
    
    @Override
    public int getType() {
        return this.type;
    }
        
    @Override
    public String toString() {
        return version+" "+
                type  +" "+
                message;
    }
}
